from selenium import webdriver
import time

chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--proxy-server=http://http-dynamic.xiaoxiangdaili.com:10030')  # 隧道域名:端口号
driver = webdriver.Chrome(executable_path="#chromedriver驱动存放路径#", chrome_options=chrome_options)
driver.get("http://httpbin.org/ip")

# 获取页面内容
print(driver.page_source)

# 延迟10秒后关闭当前窗口，如果是最后一个窗口则退出
time.sleep(10)
driver.close()